package cn.hesion.springcloud.service.impl;
/**
 * ClassName: PaymentServiceImpl <br/>
 * Description: <br/>
 * date: 2020/8/22 9:52<br/>
 *
 * @author Hesion<br />
 * @version
 * @since JDK 1.8
 */

import cn.hesion.springcloud.dao.PaymentDao;
import cn.hesion.springcloud.eneties.Payment;
import cn.hesion.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @program: springcloud
 * @description:
 * @author: hesion
 * @create: 2020-08-22 09:52
 **/
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
